Optimal. Leaf size=182 \[ -\frac {2476 \sqrt {x} (2+3 x)}{2835 \sqrt {2+5 x+3 x^2}}+\frac {4}{945} \sqrt {x} (430+639 x) \sqrt {2+5 x+3 x^2}-\frac {10}{21} \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2}+\frac {2476 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} E\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{2835 \sqrt {2+5 x+3 x^2}}-\frac {164 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} F\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{189 \sqrt {2+5 x+3 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 182, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {846, 828, 853,
1203, 1114, 1150} \begin {gather*} -\frac {164 \sqrt {2} (x+1) \sqrt {\frac {3 x+2}{x+1}} F\left (\text {ArcTan}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{189 \sqrt {3 x^2+5 x+2}}+\frac {2476 \sqrt {2} (x+1) \sqrt {\frac {3 x+2}{x+1}} E\left (\text {ArcTan}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{2835 \sqrt {3 x^2+5 x+2}}-\frac {10}{21} \sqrt {x} \left (3 x^2+5 x+2\right )^{3/2}+\frac {4}{945} \sqrt {x} (639 x+430) \sqrt {3 x^2+5 x+2}-\frac {2476 \sqrt {x} (3 x+2)}{2835 \sqrt {3 x^2+5 x+2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 828
Rule 846
Rule 853
Rule 1114
Rule 1150
Rule 1203
Rubi steps
\begin {align*} \int (2-5 x) \sqrt {x} \sqrt {2+5 x+3 x^2} \, dx &=-\frac {10}{21} \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2}+\frac {2}{21} \int \frac {(5+71 x) \sqrt {2+5 x+3 x^2}}{\sqrt {x}} \, dx\\ &=\frac {4}{945} \sqrt {x} (430+639 x) \sqrt {2+5 x+3 x^2}-\frac {10}{21} \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2}-\frac {4}{945} \int \frac {205+\frac {619 x}{2}}{\sqrt {x} \sqrt {2+5 x+3 x^2}} \, dx\\ &=\frac {4}{945} \sqrt {x} (430+639 x) \sqrt {2+5 x+3 x^2}-\frac {10}{21} \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2}-\frac {8}{945} \text {Subst}\left (\int \frac {205+\frac {619 x^2}{2}}{\sqrt {2+5 x^2+3 x^4}} \, dx,x,\sqrt {x}\right )\\ &=\frac {4}{945} \sqrt {x} (430+639 x) \sqrt {2+5 x+3 x^2}-\frac {10}{21} \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2}-\frac {328}{189} \text {Subst}\left (\int \frac {1}{\sqrt {2+5 x^2+3 x^4}} \, dx,x,\sqrt {x}\right )-\frac {2476}{945} \text {Subst}\left (\int \frac {x^2}{\sqrt {2+5 x^2+3 x^4}} \, dx,x,\sqrt {x}\right )\\ &=-\frac {2476 \sqrt {x} (2+3 x)}{2835 \sqrt {2+5 x+3 x^2}}+\frac {4}{945} \sqrt {x} (430+639 x) \sqrt {2+5 x+3 x^2}-\frac {10}{21} \sqrt {x} \left (2+5 x+3 x^2\right )^{3/2}+\frac {2476 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} E\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{2835 \sqrt {2+5 x+3 x^2}}-\frac {164 \sqrt {2} (1+x) \sqrt {\frac {2+3 x}{1+x}} F\left (\tan ^{-1}\left (\sqrt {x}\right )|-\frac {1}{2}\right )}{189 \sqrt {2+5 x+3 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 20.14, size = 163, normalized size = 0.90 \begin {gather*} \frac {-2 \left (2476+3730 x-3354 x^2-1935 x^3+8748 x^4+6075 x^5\right )-2476 i \sqrt {2} \sqrt {1+\frac {1}{x}} \sqrt {3+\frac {2}{x}} x^{3/2} E\left (i \sinh ^{-1}\left (\frac {\sqrt {\frac {2}{3}}}{\sqrt {x}}\right )|\frac {3}{2}\right )+16 i \sqrt {2} \sqrt {1+\frac {1}{x}} \sqrt {3+\frac {2}{x}} x^{3/2} F\left (i \sinh ^{-1}\left (\frac {\sqrt {\frac {2}{3}}}{\sqrt {x}}\right )|\frac {3}{2}\right )}{2835 \sqrt {x} \sqrt {2+5 x+3 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.73, size = 122, normalized size = 0.67
method | result | size |
default | \(\frac {-\frac {30 x^{5}}{7}+\frac {418 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {6}\, \sqrt {-x}\, \EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{2835}-\frac {1238 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {6}\, \sqrt {-x}\, \EllipticE \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{8505}-\frac {216 x^{4}}{35}+\frac {86 x^{3}}{63}+\frac {4712 x^{2}}{945}+\frac {328 x}{189}}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) | \(122\) |
risch | \(-\frac {2 \left (675 x^{2}-153 x -410\right ) \sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}{945}-\frac {\left (\frac {164 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{567 \sqrt {3 x^{3}+5 x^{2}+2 x}}+\frac {1238 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \left (\frac {\EllipticE \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{3}-\EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )\right )}{2835 \sqrt {3 x^{3}+5 x^{2}+2 x}}\right ) \sqrt {x \left (3 x^{2}+5 x +2\right )}}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) | \(188\) |
elliptic | \(\frac {\sqrt {x \left (3 x^{2}+5 x +2\right )}\, \left (-\frac {10 x^{2} \sqrt {3 x^{3}+5 x^{2}+2 x}}{7}+\frac {34 x \sqrt {3 x^{3}+5 x^{2}+2 x}}{105}+\frac {164 \sqrt {3 x^{3}+5 x^{2}+2 x}}{189}-\frac {164 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{567 \sqrt {3 x^{3}+5 x^{2}+2 x}}-\frac {1238 \sqrt {6 x +4}\, \sqrt {3 x +3}\, \sqrt {-6 x}\, \left (\frac {\EllipticE \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )}{3}-\EllipticF \left (\frac {\sqrt {6 x +4}}{2}, i \sqrt {2}\right )\right )}{2835 \sqrt {3 x^{3}+5 x^{2}+2 x}}\right )}{\sqrt {x}\, \sqrt {3 x^{2}+5 x +2}}\) | \(217\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.86, size = 53, normalized size = 0.29 \begin {gather*} -\frac {2}{945} \, {\left (675 \, x^{2} - 153 \, x - 410\right )} \sqrt {3 \, x^{2} + 5 \, x + 2} \sqrt {x} - \frac {68}{729} \, \sqrt {3} {\rm weierstrassPInverse}\left (\frac {28}{27}, \frac {80}{729}, x + \frac {5}{9}\right ) + \frac {2476}{2835} \, \sqrt {3} {\rm weierstrassZeta}\left (\frac {28}{27}, \frac {80}{729}, {\rm weierstrassPInverse}\left (\frac {28}{27}, \frac {80}{729}, x + \frac {5}{9}\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \left (- 2 \sqrt {x} \sqrt {3 x^{2} + 5 x + 2}\right )\, dx - \int 5 x^{\frac {3}{2}} \sqrt {3 x^{2} + 5 x + 2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \sqrt {x}\,\left (5\,x-2\right )\,\sqrt {3\,x^2+5\,x+2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________